package com.bytedance.common.utility.collection;

import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public final class a extends AbstractSet {
    private final Map a;
    private transient Set b;

    public a(Map arg2) {

        this.a = arg2;
        this.b = arg2.keySet();
    }

    public final boolean add(Object arg3) {
        boolean v0 = this.a.put(arg3, Boolean.TRUE) == null ? true : false;
        return v0;
    }

    public final void clear() {
        this.a.clear();
    }

    public final boolean contains(Object arg2) {
        return this.b.contains(arg2);
    }

    public final boolean containsAll(Collection arg2) {
        return this.b.containsAll(arg2);
    }

    public final boolean equals(Object arg2) {
        return this.b.equals(arg2);
    }

    public final int hashCode() {
        return this.b.hashCode();
    }

    public final boolean isEmpty() {
        return this.a.isEmpty();
    }

    public final Iterator iterator() {
        return this.b.iterator();
    }

    public final boolean remove(Object arg2) {
        boolean v0 = this.a.remove(arg2) != null ? true : false;
        return v0;
    }

    public final boolean retainAll(Collection arg2) {
        return this.b.retainAll(arg2);
    }

    public final int size() {
        return this.a.size();
    }

    public final Object[] toArray() {
        return this.b.toArray();
    }

    public final Object[] toArray(Object[] arg2) {
        return this.b.toArray(arg2);
    }

    public final String toString() {
        return this.b.toString();
    }
}

